// 使用自己封装的api
import request from '@/api/http'

function getDormList(params) {
  return request({
    url: '/admin/xy/dorm/list',
    method: 'get',
    params
  })
}
function saveDorm(params) {
  return request({
    url: '/admin/xy/dorm/save',
    method: 'post',
    params
  })
}
function updateDorm(params) {
  return request({
    url: '/admin/xy/dorm/update',
    method: 'post',
    params
  })
}

function detail(params) {
  return request({
    url: '/admin/xy/dorm/detail',
    method: 'get',
    params
  })
}
function delDorm(params) {
  return request({
    url: '/admin/xy/dorm/del',
    method: 'get',
    params
  })
}

export default {
  getDormList,
  detail,
  saveDorm,
  updateDorm,
  delDorm
}
